-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ERR: Raise ImportError when xlrd is not present #17613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
doc/source/whatsnew/v0.21.0.txt
Outdated
@@ -115,6 +115,7 @@ Other Enhancements | |||
- :func:`DataFrame.items` and :func:`Series.items` is now present in both Python 2 and 3 and is lazy in all cases (:issue:`13918`, :issue:`17213`) | |||
- :func:`Styler.where` has been implemented. It is as a convenience for :func:`Styler.applymap` and enables simple DataFrame styling on the Jupyter notebook (:issue:`17474`). | |||
- :func:`MultiIndex.is_monotonic_decreasing` has been implemented. Previously returned ``False`` in all cases. (:issue:`16554`) | |||
- :func:`read_excel` raises ``ImportError`` with better message if ``xlrd`` is not installed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reference your PR here.
pandas/io/excel.py
Outdated
raise ImportError("pandas requires xlrd >= 0.9.0 for excel " | ||
"support, current version " + xlrd.__VERSION__) | ||
err_msg = "Install xlrd >= 0.9.0 for Excel support" | ||
try: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newline above this one.
Codecov Report
@@ Coverage Diff @@
## master #17613 +/- ##
==========================================
- Coverage 91.19% 91.17% -0.03%
==========================================
Files 163 163
Lines 49625 49629 +4
==========================================
- Hits 45257 45250 -7
- Misses 4368 4379 +11
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #17613 +/- ##
==========================================
- Coverage 91.19% 91.17% -0.03%
==========================================
Files 163 163
Lines 49625 49629 +4
==========================================
- Hits 45257 45250 -7
- Misses 4368 4379 +11
Continue to review full report at Codecov.
|
Related issues: pandas-dev#8515, pandas-dev#14673 Author: Guilherme Beltramini <[email protected]> Closes pandas-dev#17613 from gcbeltramini/xlrd-import and squashes the following commits: dee1998 [Guilherme Beltramini] Add PR number and blank line c2759cb [Guilherme Beltramini] Throw ImportError
Related issues: pandas-dev#8515, pandas-dev#14673 Author: Guilherme Beltramini <[email protected]> Closes pandas-dev#17613 from gcbeltramini/xlrd-import and squashes the following commits: dee1998 [Guilherme Beltramini] Add PR number and blank line c2759cb [Guilherme Beltramini] Throw ImportError
git diff upstream/master -u -- "*.py" | flake8 --diff